package sim.tests.games.alone;

import java.util.Random;

import com.badlogic.gdx.math.Vector2;

import sim.Image;
import sim.Sprite;



public class Soul extends Sprite
{
	Random rad = new Random();
	float rotateAmount;
	public boolean clicked = false;

	public Soul(Vector2 pos)
	{
		this(pos.x, pos.y);
		
	}
	
	public Soul(float x, float y)
	{
		
		super(new Image("soul.png"), x, y);
		
		rotateAmount = rad.nextFloat() * 2;
		if(rad.nextInt(2) == 0)
			rotateAmount *= -1;
		
	}
	
	@Override
	public void update(float timeStep)
	{
		
		
		image.rotate(rotateAmount);
		super.update(timeStep);
	}

}
